﻿#ifndef ORDERFORMCOMMENT_H
#define ORDERFORMCOMMENT_H

#include <QWidget>
#include "globalvars.h"

namespace Ui {
class OrderFormComment;
}

class OrderFormComment : public QWidget
{
    Q_OBJECT
signals:
    void signalCommentSubmit();
public:
    explicit OrderFormComment(QWidget *parent = nullptr);
    ~OrderFormComment();

    void judgeSubmit();
    void setHotel(const QStringList& strList);
    void setResult(const QString& msg);

private slots:
    void on_pb_comment1_clicked();
    void on_pb_comment2_clicked();
    void on_pb_comment3_clicked();
    void on_pb_comment4_clicked();
    void on_pb_comment5_clicked();

    void on_pb_uploadImages_clicked();
    void on_pb_submit_clicked();
    void on_te_comment_textChanged();

private:
    Ui::OrderFormComment *ui;

    int m_star;
    bool m_haveImage;
    bool m_commentWord;
    CommentInfo m_commentInfo;
    QString m_comment;
    QStringList m_imagePathList;
};

#endif // ORDERFORMCOMMENT_H
